package _04Objects类;

import java.util.Date;
import java.util.Objects;

public class DemoObjects {

    public static void main(String[] args) {

        String s1="a";
        String s2 = new String("a");
        boolean equals = Objects.equals(s1, s2);
        System.out.println(equals);


        Student t1 = new Student("张三");
        Student t2 = new Student("张三");
        System.out.println(Objects.equals(t1,t2));

        Student t3 = new Student();
        System.out.println(Objects.isNull(t1));
        System.out.println(Objects.isNull(t3));

    }
}
